const loaderUtils = require('loader-utils');

function apiLoader(content, map, meta) {
    const options = loaderUtils.getOptions(this);
    if (options.url) {
        content = content.replace(/http:\/\/.*\/api/, options.url);
    }
    // console.log(content);
    return content;
}

apiLoader.pitch = function (remainingRequest, precedingRequest, data) {

};


module.exports = apiLoader;